package entities;

import java.io.Serializable;

import javax.persistence.*;

@Entity
@Table(name="friend_of")
public class FriendOf implements Serializable {

	@EmbeddedId
	private FriendOfPK key;
	
	public FriendOf() {

	}

	public FriendOf(RegisteredUser user1, RegisteredUser user2) {
		super();
		key = new FriendOfPK(user1, user2);
	}

	public FriendOfPK getKey(){
		return key;
	}
	
	

}
